package com.honkentuber.chat;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.honkentuber.AppContext;
import com.honkentuber.Database;

public class ChatContext extends AppContext {

  public ChatContext(HttpServletRequest req, HttpServletResponse resp) {
    super(req, resp);
  }

  @Override
  protected Database newDb() {
    return new ChatDatabase(persistenceManager, timingLogger);
  }

  public ChatDatabase getChatDb() {
    return (ChatDatabase) db;
  }

}
